@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  --foreground-rgb: 0, 0, 0;
  --background-start-rgb: 214, 219, 220;
  --background-end-rgb: 255, 255, 255;
}

@media (prefers-color-scheme: dark) {
  :root {
    --foreground-rgb: 255, 255, 255;
    --background-start-rgb: 0, 0, 0;
    --background-end-rgb: 0, 0, 0;
  }
}

.user-scroller::-webkit-scrollbar {/*滚动条整体样式*/
    width: 5px;     /*高宽分别对应横竖滚动条的尺寸*/
    height: 5px;
    scrollbar-arrow-color:red;
}
.user-scroller::-webkit-scrollbar-thumb {/*滚动条里面小方块*/
    border-radius: 5px;
    -webkit-box-shadow: inset 0 0 5px rgba(218, 218, 218,0.2);
    box-shadow: inset 0 0 5px rgba(218, 218, 218,0.2);
    background: rgba(218, 218, 218,0.2);
    scrollbar-arrow-color:red;
}
.user-scroller::-webkit-scrollbar-track {/*滚动条里面轨道*/
    -webkit-box-shadow: inset 0 0 5px rgba(218, 218, 218,0.2);
    box-shadow: inset 0 0 5px rgba(218, 218, 218,0.2);
    border-radius: 0;
    background: rgba(218, 218, 218,0.1);
}

.deep-scroller::-webkit-scrollbar {/*滚动条整体样式*/
    width: 3px;     /*高宽分别对应横竖滚动条的尺寸*/
    height: 3px;
    scrollbar-arrow-color:red;
}
.deep-scroller::-webkit-scrollbar-thumb {/*滚动条里面小方块*/
    border-radius: 2px;
    -webkit-box-shadow: inset 0 0 2px rgba(199, 199, 199,0.5);
    box-shadow: inset 0 0 2px rgba(199, 199, 199,0.5);
    background: rgba(199, 199, 199,0.5);
    scrollbar-arrow-color:red;
}
.deep-scroller::-webkit-scrollbar-track {/*滚动条里面轨道*/
    -webkit-box-shadow: inset 0 0 2px rgba(199, 199, 199,0.6);
    box-shadow: inset 0 0 2px rgba(199, 199, 199,0.6);
    border-radius: 0;
    background: rgba(199, 199, 199,0);
}

.loading-container {
  position: relative;
  overflow: hidden;
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


.loading-container::after {
  position: absolute;
  content: "";
  color: #fff;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  animation: rotate 2s linear infinite;
  display: block;
  z-index: 100;
  background-image: url(/loading.png);
  background-size: 100%;
  background-repeat: no-repeat;
}

.loading-container::before {
  position: absolute;
  content: "";
  color: #fff;
  top: 0;
  left: 0;
  width: 200%;
  height: 200%;
  animation: loading 1.5s infinite;
  display: block;
  background-color: rgba(0,0,0, 0.3);
  z-index: 100;
}

.hover-line {
  background-color: rgba(210, 82, 39, 0.5);
}